package com.dyh.quickdemozwei.thewd;

import com.google.common.base.Joiner;
import org.junit.jupiter.api.Test;

import java.math.BigInteger;

/**
 * @Author: yhdong
 * @Date: 2021/12/21 11:23
 */
public class TestJoiner {

    @Test
    public void test(){
       String res = Joiner.on("").join("order_sn_","1", "22");

        System.out.println(res);
    }

    @Test
    public void test2(){
        String str = "12377777989567567999999";

        String str2 = changeTo36(str); //3F

        System.out.print(Long.valueOf(str2, Character.MAX_RADIX));


        System.out.println();
    }

    public static String changeTo36(String value) {
        return new BigInteger(value, 10).toString(Character.MAX_RADIX).toUpperCase();
    }
}
